/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package replic.console;

/**
 *
 * @author Leonardo Oliveira Moreira
 */
public class TransactionResult {
    
    private int operationNumber;
    
    private long startTime;
    private long endTime;
    
    public TransactionResult() {
        operationNumber = 0;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getOperationNumber() {
        return operationNumber;
    }

    public void setOperationNumber(int operationNumber) {
        this.operationNumber = operationNumber;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }
    
    public void incrementOperationNumber() {
        operationNumber++;
    }

    @Override
    public String toString() {
        return startTime + ";" + endTime + ";" + operationNumber;
    }
    
}
